import Login from "@/pages/Login";
import Layout from "@/pages/Layout";
import Article from "@/pages/Article";
import { createBrowserRouter } from "react-router-dom";
import * as React from 'react'
import AutoRoutr from "@/compoents/AutoRoutr";
import Home from "@/pages/Home";
import Publish from "@/pages/publish";
const router = createBrowserRouter([
    {
        // path: '/',
        element: <AutoRoutr> <Layout></Layout> </AutoRoutr>,
        children: [
            {
                path: '/',
                index: true,
                element: <Home></Home>
            },
            {
                path: '/article',
                element: <Article></Article>
            },
            {
                path: '/publish',
                element: <Publish></Publish>
            }
        ]
    },
    {
        path: '/login',
        element: <Login></Login>
    }
])
export default router